const express = require('express');
const router = express.Router();
const {server} = require("../../controllers");
const { verifyToken } = require("../verifyToken");

// 获取私信
router.post('/getMessage', verifyToken, (req, res) => server.getMessagePage(req, res));

//删除私信
router.post('/deleteMessage', verifyToken, (req, res) => server.deleteMessage(req, res));

//私信状态更新
router.post('/updateMessageStatus', verifyToken, (req, res) => server.updateMessageStatus(req, res));

//获取未读私信总数
router.post('/getUnreadMessageCount', verifyToken, (req, res) => server.getUnreadMessageCount(req, res));


module.exports = router;

